/*
 * @Author: yuqy
 * @Date: 2023-04-10 17:30:15
 * @LastEditors: yuqy
 * @LastEditTime: 2023-10-20 11:28:03
 * @Descripttion: -
 */
import { createApp } from 'vue'
import route from './router'
// import './style.css'
import App from './App.vue'
import store from "./store";
import api from "./libs/request";

// 引入Vuetify
import 'vuetify/styles'
import { createVuetify } from 'vuetify'
import * as components from 'vuetify/components'
import * as directives from 'vuetify/directives'
const vuetify = createVuetify({
    components,
    directives,
})

// 指定引入vant 
import { Switch, Icon, Popover, ActionSheet, ShareSheet, Popup } from 'vant'
// import 'vant/lib/index.css'
import 'vant/es/toast/style';
import "vant/es/dialog/style";

// import ViewUIPlus from 'view-ui-plus'
// 指定引入iview组件样式
// import 'view-ui-plus/dist/styles/viewuiplus.css'
import './assets/less/index.less';

// 全局引用mixins
import mixin from './mixins/index.js'
// console.log(import.meta.env)
const app = createApp(App)
app.use(route)
app.use(store)
app.use(vuetify)
// app.use(Toast)
app.use(Switch)
app.use(Icon)
app.use(Popover)
app.use(ActionSheet)
app.use(ShareSheet)
app.use(Popup)
// app.use(ViewUIPlus)
app.mixin(mixin)
app.mount('#app')
app.config.globalProperties.$api = api